﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ext.Master" AutoEventWireup="true" CodeBehind="Controls.Button.aspx.cs" Inherits="Demo.Controls_Button" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        function btnOK_click(sender) {
            alert('client clicked');
        }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel runat="server">
        <ContentTemplate>
            <ext:Button ID="btnOK" runat="server" Text="提交" Visible="true" OnClick="btnOK_Click" DisableAfterClick="true"
                OnClientClick="btnOK_click" Message="确定提交吗？">
                <TriggerPostBackEvents Click="true" />
            </ext:Button>
            <asp:Label ID="lblMessage" Text="" runat="server" ForeColor="Red" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
